﻿// Decompiled with JetBrains decompiler
// Type: DnProcessSimulateCommands.InterferenceVolume.CUiIVNotificationFeedbackEventArgs
// Assembly: DnProcessSimulateCommands, Version=2402.0.0.890, Culture=neutral, PublicKeyToken=null
// MVID: A885D881-AEDF-447E-852A-6F13102E089C
// Assembly location: C:\Program Files\Tecnomatix_2402\eMPower\DotNetCommands\DnProcessSimulateCommands.dll

using System.Windows.Forms;


namespace DnProcessSimulateCommands.InterferenceVolume;

internal class CUiIVNotificationFeedbackEventArgs
{
  private CUiIVNotification m_notification;
  private CUiIVNotificationFeedbackEventArgs.eFeedbackResult m_feedbackResult;

  internal CUiIVNotificationFeedbackEventArgs(CUiIVNotification notification)
  {
    this.m_notification = notification;
  }

  internal CUiIVNotification Notification => this.m_notification;

  internal CUiIVNotificationFeedbackEventArgs.eFeedbackResult FeedbackResult
  {
    get => this.m_feedbackResult;
    set => this.m_feedbackResult = value;
  }

  internal CUiIVNotificationFeedbackEventArgs.eFeedbackResult ConvertToFeedbackResult(
    DialogResult dlgResult)
  {
    CUiIVNotificationFeedbackEventArgs.eFeedbackResult feedbackResult;
    switch (dlgResult)
    {
      case DialogResult.Abort:
        feedbackResult = CUiIVNotificationFeedbackEventArgs.eFeedbackResult.Abort;
        break;
      case DialogResult.Yes:
        feedbackResult = CUiIVNotificationFeedbackEventArgs.eFeedbackResult.Yes;
        break;
      case DialogResult.No:
        feedbackResult = CUiIVNotificationFeedbackEventArgs.eFeedbackResult.No;
        break;
      default:
        feedbackResult = CUiIVNotificationFeedbackEventArgs.eFeedbackResult.None;
        break;
    }
    return feedbackResult;
  }

  internal enum eFeedbackResult
  {
    None,
    Yes,
    No,
    Abort,
  }
}
